/**
 * 部门管理main布局
 */
Ext.define("AM.view.MainLayout", {
	extend: 'Ext.panel.Panel',
	alias: 'widget.mainlayout',
	defaults: {
		bodyStyle: 'padding:1px',
		split: true
	} ,
	layout: 'border',
	items: [{
			title: '部门',
			region: 'west',  //布局在西边
			xtype: 'panel',
			margins: '5 2 5 5',
			width: 200,
			collapsible: true,  //面板可折叠
			id: 'west-tree',
			layout: 'fit',
			items: [{
				id: 'deptTree',
				xtype: 'deptTree'
			}]
		}, {
			title: '部门数据表',
			region: 'center',
			layout: 'fit',
			xtype: 'panel',
			id: 'center-grid',
			margins: '5 5 5 0',
			items: [{
				id: 'dept-grid',
				xtype: 'deptlist'
			}]
		}]
});